package com.haoyeteng.sxbd.modular.business.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 报警表
 * </p>
 *
 * @author haoyeteng123
 * @since 2019-07-06
 */
@TableName("bus_warn")
public class Warn extends Model<Warn> {

    private static final long serialVersionUID = 1L;

    /**
     * 报警Id
     */
    @TableId(value = "warn_id", type = IdType.AUTO)
    private Integer warnId;
    /**
     * 差分账号Id
     */
    @TableField("account_id")
    private Integer accountId;
    /**
     * 报警类型(1进入禁区;2超出范围)
     */
    @TableField("warn_type")
    private Integer warnType;
    /**
     * 电子围栏Id
     */
    @TableField("ele_fence_id")
    private Integer eleFenceId;
    /**
     * 报警时间
     */
    @TableField("warn_date")
    private Date warnDate;
    /**
     * 设备坐标经纬度(逗号相隔)
     */
    private String coordinate;
    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;
    /**
     * 更新时间
     */
    @TableField("update_time")
    private Date updateTime;
    /**
     * 删除标记
     */
    private Integer flag;


    public Integer getWarnId() {
        return warnId;
    }

    public void setWarnId(Integer warnId) {
        this.warnId = warnId;
    }

    public Integer getAccountId() {
        return accountId;
    }

    public void setAccountId(Integer accountId) {
        this.accountId = accountId;
    }

    public Integer getWarnType() {
        return warnType;
    }

    public void setWarnType(Integer warnType) {
        this.warnType = warnType;
    }

    public Integer getEleFenceId() {
        return eleFenceId;
    }

    public void setEleFenceId(Integer eleFenceId) {
        this.eleFenceId = eleFenceId;
    }

    public Date getWarnDate() {
        return warnDate;
    }

    public void setWarnDate(Date warnDate) {
        this.warnDate = warnDate;
    }

    public String getCoordinate() {
        return coordinate;
    }

    public void setCoordinate(String coordinate) {
        this.coordinate = coordinate;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getFlag() {
        return flag;
    }

    public void setFlag(Integer flag) {
        this.flag = flag;
    }

    @Override
    protected Serializable pkVal() {
        return this.warnId;
    }

    @Override
    public String toString() {
        return "Warn{" +
        "warnId=" + warnId +
        ", accountId=" + accountId +
        ", warnType=" + warnType +
        ", eleFenceId=" + eleFenceId +
        ", warnDate=" + warnDate +
        ", coordinate=" + coordinate +
        ", createTime=" + createTime +
        ", updateTime=" + updateTime +
        ", flag=" + flag +
        "}";
    }
}
